package com.yunxi.model.activiti;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author 
 * @since 2019-07-15
 */
@TableName(value="activiti_tm_manage")
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="ActivitiTmManage对象", description="")
public class ActivitiManage implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "ID", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "公司id")
    @TableField("COMPANY_ID")
    private Long companyId;

    @ApiModelProperty(value = "部门id")
    @TableField("DEPARTMENT_ID")
    private Long departmentId;

    @ApiModelProperty(value = "职位id")
    @TableField("POST_ID")
    private Long postId;

    @ApiModelProperty(value = "工作流名称")
    @TableField("ACTIVITI_NAME")
    private String activitiName;

    @ApiModelProperty(value = "工作流CODE")
    @TableField("ACTIVITI_CODE")
    private String activitiCode;

    @ApiModelProperty(value = "工作流类型id")
    @TableField("ACTIVITI_TYPE")
    private Long activitiType;

    @ApiModelProperty(value = "工作流model表id")
    @TableField("ACTIVITI_MODEL_ID")
    private String activitiModelId;

    @ApiModelProperty(value = "状态 10011001:有效 10011002:无效")
    @TableField("STATUS")
    private Integer status;

    @ApiModelProperty(value = "创建人")
    @TableField("CREATE_BY")
    private Long createBy;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATE_DATE")
    private Date createDate;

    @ApiModelProperty(value = "修改人")
    @TableField("UPDATE_BY")
    private Long updateBy;

    @ApiModelProperty(value = "修改时间")
    @TableField("UPDATE_DATE")
    private Date updateDate;

    @ApiModelProperty(value = "抄送的职位id")
    @TableField("SEND_POST_ID")
    private Long sendPostId;

    @TableField("SEND_COMPANY_ID")
    private Long sendCompanyId;

    @TableField("MEMO")
    private String memo;

    @ApiModelProperty(value = "启动ID")
    private transient  Long activitiDeployId;
    @ApiModelProperty(value = "启动创建时间")
    private transient Date deployCreateDate;
}
